package service.impl;

import dao.impl.UserDaoImpl;
import entity.User;
import service.IUserService;

public class UserServiceImpl implements IUserService{

	private UserDaoImpl udi = new UserDaoImpl();
	
	@Override
	public boolean save(User user) {
		return udi.save(user);
	}

	@Override
	public boolean update(User user) {
		return udi.update(user);
	}

	@Override
	public boolean delete(User user) {
		return udi.delete(user);
	}

	@Override
	public User selectById(int id) {
		return udi.selectById(id);
	}

	@Override
	public User selectAll() {
		return udi.selectAll();
	}

	@Override
	public boolean regist(User user) {
		return udi.regist(user);
	}

	@Override
	public User login(User user) {
		return udi.login(user);
	}

	@Override
	public boolean saveMoney(double money) {
		return udi.saveMoney(money);
	}

	@Override
	public boolean withDraw(double money) {
		return udi.withDraw(money);
	}

	@Override
	public boolean transform(int id, double money) {
		return udi.transform(id, money);
	}

	@Override
	public double checkBalance() {
		return udi.checkBalance();
	}
}
